package type1;

/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: type1.Client
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/1/18 11:02
 * @version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        //创建活动对象 1个奖品
        RaffleActivity activity = new RaffleActivity(1);
        //连续抽奖30次
        for (int i = 0; i < 30; i++) {
            System.out.println("--------第"+(i+1)+"次抽奖----------");
            //参加抽奖，第一步点击扣除积分
            activity.debuctMoney();
            //第二步抽奖
            activity.raffle();
        }

    }
}
